<?php 
include TMPL_PATH.'public/header.phtml';
?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x" style="overflow:hidden;">
        <a href='<?php echo U('user/account_list');?>'><em>充值和提现申请</em></a><span>|</span>
        <a href='javascript:;' class="on"><em><?php if(isset($account))echo '编辑';else echo'添加';?>申请</em></a>
    </div>
</div>
<form name="myform" id="myform" action="__SELF__" method="post">
<div class="pad-10">
<div class="col-tab">
<div id="div_setting_1" class="contentList division pad-10">
<table width="100%" class="table_form">
	<tbody>
	<tr> 
		<th width="100">会员名称：</th> 
		<td><input type="text" name="user_name"  class="input-text" id="user_name" value="<?php echo isset($account['username']) ? $account['username'] : null;?>" <?php if(isset($account['username'])) echo 'disabled';?>/></td>
		</tr>
		<tr>
		<th>金额：</th> 
		<td><input type="text" name="amount" value="<?php echo isset($account['amount']) ? $account['amount'] : null;?>" class="input-text" id="amount"/></td>
		</tr>
		<tr>
		<th>支付方式：</th> 
		<td><select id="payment" name="payment">
      <?php 
			if(isset($paymentList) && $paymentList):
				foreach ($paymentList as $payment):
					if($payment['status'] == false) continue;
			?>
			<option <?php if(isset($account['payment']) && $account['payment']==$payment['name'])echo'selected';?> value="<?php echo $payment['name']?>"><?php echo $payment['title'];?></option>
			<?php 
				endforeach;
			endif;
			?>
    </select>
    </td>
		</tr>
		<tr>
		<th>类型：</th> 
		<td>
          <input type="radio" <?php if(!isset($account['process_type']) || (isset($account['process_type']) && $account['process_type']==0))echo'checked';?> value="0" name="process_type">充值         
           <input type="radio" <?php if(isset($account['process_type']) && $account['process_type']==1)echo'checked';?> value="1" name="process_type">提现                 
     </td>
		</tr>
		<tr>
		<th>管理员备注：</th> 
		<td><textarea rows="3" cols="55" name="admin_note"><?php echo isset($account['admin_note']) ? $account['admin_note'] : null;?></textarea>
    </td>
		</tr>
		<tr>
		<th>会员描述：</th> 
		<td><textarea rows="3" cols="55" name="user_note"><?php echo isset($account['user_note']) ? $account['user_note'] : null;?></textarea>
    </td>
		</tr>
		<tr>
		<th>到款状态：</th> 
		<td>
          <input type="radio" <?php if(isset($account['is_paid']) && $account['is_paid']==0)echo'checked';?> value="0" name="is_paid">未确认         
           <input type="radio" <?php if(isset($account['is_paid']) && $account['is_paid']==1)echo'checked';?> value="1" name="is_paid">已完成          
           <input type="radio" <?php if(isset($account['is_paid']) && $account['is_paid']==2)echo'checked';?> value="2" name="is_paid">取消       
    </td>		
  </tr>
</tbody>
</table>
</div>
<div class="bk15"></div>
		<input type="hidden" name="user_id" value="<?php echo isset($account['user_id']) ? $account['user_id'] : null;?>" />
    <input name="dosubmit" type="submit" value="提交"  class="button" id="dosubmit" />
</div>
</div>
</form>
</body>
</html>